Objects Reference

bsp_object::get_mesh

Prototype

virtual mesh *get_mesh()

Parameters

None

Return Value

Returns a mesh representation for the object or NULL if none exists.

Remarks

This virtual function is used for querying the mesh representation of the object and derived classes should implement it when needed. If this function is implemented, the default draw, ray_intersect and ray_intersect_test will use it and they do not need to be defined in the derived class.

Its default behavior is to return 0.